/**
 * @param {string[]} words
 * @return {boolean}
 */
 var makeEqual = function(words) {
    const map = new Map()
    for(let w of words){
        for(let ch of w){
            map.set(ch, map.has(ch) ? map.get(ch)+1 : 1)
        }
    }
    const arr = [...map.values()]
    const n = words.length
    for(let i = 0,len = arr.length; i<len; i++){
        if(arr[i] % n !== 0)
            return false
    }
    return true
};